package cn.mumzone.pos.presenter.contract;

import cn.mumzone.basic.mvp.BasePresenter;
import cn.mumzone.basic.mvp.BaseView;
import cn.mumzone.basic.net.response.PageListResponse;
import cn.mumzone.pos.model.InventoryItemEntity;

/**
 * Created By Dlx
 * on 2019/9/25
 */
public interface InventoryItemContract {
    interface View extends BaseView {
        void showToast(String str);

        void onDataReceived(PageListResponse<InventoryItemEntity> response);

        void noMore();

        void noData();

        void searchFailed();

        void onDateChanged(long date);

        void onSearchKeyCome(String key);

    }

    interface Presenter extends BasePresenter<View> {
        void initEvent();

        void getDatas(int pageNum, String inventoryType, String inventoryStatus, String startTime, String endTime, String keyword);

    }
}
